package cn.unknowpupil.init.controller.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created at 2020/11/13 by w10g <br>
 * Initialize EchoController ... <br>
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Api(tags = {"系统-测试Controller" }, value = "Echo")
@Slf4j
@RequestMapping("api/echo")
@RestController
@RequiredArgsConstructor
public class EchoController {
    @ApiOperation("系统：测试echo")
    @GetMapping()
    public Object echo(String key){
        return  "ok";
    }
}
